package com.doeis.minaserver.dao;

import java.sql.Timestamp;

import com.voland.core.annotation.Table;
import com.voland.core.db.Entity;
import com.voland.core.validator.NotNull;
import com.voland.core.validator.Pattern;

@Table(name="user")
public class User extends Entity {
	private String id;
	private String switchboard_id;
	@Pattern(regexp="^(1)\\d{10,11}$", message="请输入正确的手机号作为帐号")
	private String login;
	@NotNull(message="密码不能为空")
	private String pwd;
	private String salt;
	
	//@Pattern(regexp="^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$", message="邮件地址不合法")
	private String email;
	//@NotNull(message="姓名不能为空")
	private String name;
	private String phone;
	private String mobile;
	private String last_ip;
	private Integer login_times;
	private Timestamp last_login;
	private String role_id;
	private String department_id;
	private String template_id;
	private Boolean status;
	private String activate_code;
	
	private Integer model;
	private String question_group_id;
	private String configs;
	
	private String head_pic;//用户头像url

	
	public String getHead_pic() {
		return head_pic;
	}
	public void setHead_pic(String head_pic) {
		this.head_pic = head_pic;
	}
	public String getSwitchboard_id() {
		return switchboard_id;
	}
	public void setSwitchboard_id(String switchboard_id) {
		this.switchboard_id = switchboard_id;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getLast_ip() {
		return last_ip;
	}
	public void setLast_ip(String last_ip) {
		this.last_ip = last_ip;
	}
	public Integer getLogin_times() {
		return login_times;
	}
	public void setLogin_times(Integer login_times) {
		this.login_times = login_times;
	}
	public Timestamp getLast_login() {
		return last_login;
	}
	public void setLast_login(Timestamp last_login) {
		this.last_login = last_login;
	}
	public String getRole_id() {
		return role_id;
	}
	public void setRole_id(String role_id) {
		this.role_id = role_id;
	}
	public String getDepartment_id() {
		return department_id;
	}
	public void setDepartment_id(String department_id) {
		this.department_id = department_id;
	}
	public String getTemplate_id() {
		return template_id;
	}
	public void setTemplate_id(String template_id) {
		this.template_id = template_id;
	}
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	public String getActivate_code() {
		return activate_code;
	}
	public void setActivate_code(String activate_code) {
		this.activate_code = activate_code;
	}
	public Integer getModel() {
		return model;
	}
	public void setModel(Integer model) {
		this.model = model;
	}
	public String getQuestion_group_id() {
		return question_group_id;
	}
	public void setQuestion_group_id(String question_group_id) {
		this.question_group_id = question_group_id;
	}
	public String getConfigs() {
		return configs;
	}
	public void setConfigs(String configs) {
		this.configs = configs;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
}
